// ==UserScript==
// @name         SgdbzHidden
// @namespace    http://0xcoder.com
// @version      0.1
// @description  摸鱼玩时光大爆炸
// @author       Legolas
// @match        https://www.wanyiwan.top/game/sgdbz
// @icon         https://gitee.com/athelas/tampermonkey_script/raw/master/icon/Sgdbz.jpg
// @grant        GM_xmlhttpRequest
// @require      https://code.jquery.com/jquery-1.12.4.min.js
// @updateURL    https://gitee.com/athelas/tampermonkey_script/raw/master/SgdbzHidden.js

// ==/UserScript==
(function() {
    'use strict';

	var fake_ico = 'https://gitee.com/athelas/tampermonkey_script/raw/master/icon/wechat.ico';
	var fake_title = '微信开放平台';
	var global_css = {
		'opacity': '0.4'
    };
    var mask_layer_css = {
        'position': 'fixed',
        'top': '0',
        'left': '0',
        'width': '100%',
        'height': '100%',
        'background-color': 'rgba(0, 0, 0, 0.6)',
        'pointer-events': 'none',
        'z-index': '9999'
    };

	$('title').text(fake_title);
    $('body').css(global_css);
    $('<div></div>').addClass('mask_layer').css(mask_layer_css).prependTo('body');
	$('head').append('<meta name="referrer" content="no-referrer" />');
	$('head').append('<link rel="shortcut icon" href="' + fake_ico + '">');
})();
